﻿
using MediatR;
using TraceabilityApp_ErrorCode;

namespace TraceabilityApp_Api.Application.Command.Traceability
{
    public class AddTraceadilityCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 商品Id(外键)
        /// </summary>
        public int GoodsId { get; set; }
        /// <summary>
        /// 生产批次(整个系统唯一)
        /// </summary>
        public string Batch { get; set; }
        /// <summary>
        /// 保质期(天)
        /// </summary>
        public int Shelf { get; set; }
        /// <summary>
        /// 生产许可证(整系统唯一)
        /// </summary>
        public string License { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string Enterprise { get; set; }
        /// <summary>
        /// 信息完善度
        /// </summary>
        public int Completeness { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string Cover { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatreName { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
    }
}
